package com.fzj.example.collection;

import java.util.Iterator;

/**
 * ClassName: MyCollection
 * date: 2019/10/11 17:18
 * Description: TODO
 *
 * @author fanzj@bonree.com
 * @since JDK 1.8
 */
public class MyCollection<E> implements Iterable<E> {
    @Override
    public Iterator< E > iterator() {
        return new CustomIterator();
    }

    private class CustomIterator implements Iterator<E>{

        @Override
        public boolean hasNext() {
            //todo
            return false;
        }

        @Override
        public E next() {
            //todo
            return null;
        }
    }
}
